package com.sea.finance.mapper;


import com.sea.finance.entity.ExchangeRate;
import com.sea.finance.entity.ExchangeRateRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *  汇率表接口
 * @author 陈鸿飞
 * <br/>
 */
public interface ExchangeRateRecordMapper {

    /**
     * 查询指定
     * @param rateId
     * @return
     */
    List<ExchangeRateRecord> findByRateId(Integer rateId);

    /**
     * 新增
     * @param rate
     * @return
     */
    int insert(ExchangeRateRecord rate);

    /**
     * 查找对应期间
     * @param rateId
     * @param period
     * @return
     */
    ExchangeRateRecord findByPeriod(@Param("rateId")Integer rateId,@Param("period")String period);

}